﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Text;

/// <summary>
///ChartLine 的摘要说明
/// </summary>
public class ChartLine
{
    private string seriesName;

    public string SeriesName
    {
        get { return seriesName; }
        set { seriesName = value; }
    }
    private StringBuilder seriesData = new StringBuilder();
    public StringBuilder SeriesData
    {
        get
        {
            return seriesData;
        }
        set
        {
            seriesData = value;
        }
    }
    private string wuLiaoMingCheng;

    public string WuLiaoMingCheng
    {
        get { return wuLiaoMingCheng; }
        set { wuLiaoMingCheng = value; }
    }
    private string xingHao;

    public string XingHao
    {
        get { return xingHao; }
        set { xingHao = value; }
    }

    public override string ToString()
    {
        SeriesData.Remove(SeriesData.Length - 1, 1);
        string returnStr = string.Format("{2}\"name\":\"{0}\",\"type\":\"line\",\"data\":[{1}]{3}", SeriesName, SeriesData.ToString(), "{", "}");
        return returnStr;
    }
}
